A gas sensor includes an in-fiber resonant wavelength device provided in a fiber core at a first location. The fiber propagates a sensing light and a power light. A layer of a material is attached to the fiber at the first location. The material is able to absorb the gas at a temperature dependent gas absorption rate. The power light is used to heat the material and increases the gas absorption rate, thereby increasing sensor performance, especially at low temperatures. Further, a method is described of flash heating the gas sensor to absorb more of the gas, allowing the sensor to cool, thereby locking in the gas content of the sensor material, and taking the difference between the starting and ending resonant wavelengths as an indication of the concentration of the gas in the ambient atmosphere.